﻿using System;

namespace ExFlash.Records
{
    public class FixedFloatRecord : ISwfSerializable
    {
        private uint _data;

        public float Number
        {
            get
            {
                return (_data / (float)Math.Pow(2, 16));
            }
        }

        #region ISwfSerializable Members

        public void SwfDeserialize(BinaryBitReader reader)
        {
            _data = reader.ReadUInt32();
        }

        public void SwfSerialize(byte[] arr, ref int offset)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
